<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<!-- querySelectorAll 返回的是一个 静态的 集合。就像元素的固定数组。 -->

		<div>First div</div>

		<script>
			let divs = document.querySelectorAll('div')
			alert(divs.length) // 1
		</script>

		<div>Second div</div>

		<script>
			alert(divs.length) // 1
		</script>
	</body>
</html>
